package com.example.win.android_banduyujia.peopleactivity.activity.activity.payactivtiy;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.peopleactivity.adapter.ViewPageAdapter;
import com.example.win.android_banduyujia.peopleactivity.fragment.tofragment.PaytoFragment;
import com.example.win.android_banduyujia.peopleactivity.fragment.tofragment.WetoFragment;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

import java.util.ArrayList;

/**
 * Created by Win on 2015/9/5.
 */
public class ShifttoActivity extends BaseTitleBarActivity implements View.OnClickListener {

    private TextView mTxtPay, mTxtWechat;
    private EditText shiftout;
    private Button mBtnout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.title_shift_to);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.text_view_roll_in);
        setRightTextViewListener(R.string.text_view_roll_to_instructions, mRightListener);
    }

    public View.OnClickListener mRightListener = new View.OnClickListener(){

        @Override
        public void onClick(View v) {

        }
    };

    private void InitViews() {
        mTxtPay = (TextView)findViewById(R.id.title_list_text_pay_to);
        mTxtWechat = (TextView)findViewById(R.id.title_image_venues_wechat_to);
        //shiftout = (EditText)findViewById(R.id.fragment_pay_edit_to_ok);
        mBtnout = (Button)findViewById(R.id.button_venues_shift_to);

        mTxtPay.setOnClickListener(this);
        mTxtWechat.setOnClickListener(this);
        // shiftout.setOnClickListener(this);
        mBtnout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.title_list_text_pay_to:
                gotoPaytoActivity();
                break;
            case R.id.title_image_venues_wechat_to:
               // gotoWechatoActivity();
                break;
            case R.id.button_venues_shift_to:
               // gotoShiftoActivity();
                break;
        }
    }

    private void gotoPaytoActivity() {
        Toast.makeText(this, "不好意思,该业务暂未开通！", Toast.LENGTH_SHORT).show();
    }

    private void gotoWechatoActivity() {

    }

    private void gotoShiftoActivity() {

    }
}
